Skip to main content

OptionalElement

OptionalElement[patt] is a grammar rules pattern object that represents 0 or 1 instances of patt.

OptionalElement[patt,default] uses default if the element is not present.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.